package com.zhaowb.springcloud.admin.mapper;

import com.zhaowb.springcloud.admin.entity.ResourceAuthority;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/**
 * Created with IDEA
 *
 * @author zhaowb
 * @date 2018/11/1 10:17
 */
@Repository
public interface ResourceAuthorityMapper extends Mapper<ResourceAuthority> {

    /**
     * 根据权限id和资源类型删除权限信息
     *
     * @param authorityId
     * @param resourceType
     */
    void deleteByAuthorityIdAndResourceType(@Param("authorityId") String authorityId, @Param("resourceType") String resourceType);
}